#ifndef CREATENEWCONTEXTDIALOG_H
#define CREATENEWCONTEXTDIALOG_H

#include "IPlugin.h"

#include <QDialog>
#include <QButtonGroup>
#include <QMap>
namespace TWCore
{
	class CreateNewContextDialog : public QDialog
	{
		Q_OBJECT
		public:
			CreateNewContextDialog(const QMap<QString,IPlugin*>&,QWidget*);
		signals:
			void chosePlugin(const QString&);
		private slots:
			void buttonClicked(QAbstractButton*);
		private:
			QButtonGroup group;
			QMap<QAbstractButton*,QString> buttonMap;
	};

} // namespace TWCore

#endif // CREATENEWCONTEXTDIALOG_H
